# Maintainer: Pegah Bahramiani <pb.bahramiani@gmail.com>
pkgname=lua-resty-upload
pkgver=0.10
pkgrel=0
pkgdesc="Streaming reader and parser for HTTP file uploading based on ngx_lua cosocket"
url="https://github.com/openresty/lua-resty-upload"
# riscv64: no luajit
arch="all !riscv64"
license="BSD-2-Clause"
depends="luajit"
source="https://github.com/openresty/lua-resty-upload/archive/v$pkgver/lua-resty-upload-$pkgver.tar.gz"
options="!check" # Test dependencies not available

package() {
	make install DESTDIR="$pkgdir" LUA_LIB_DIR="/usr/share/lua/5.1"

	echo 'rock_manifest = {}' > rock_manifest
	install -D -m 644 rock_manifest \
		"$pkgdir"/usr/lib/luarocks/rocks-5.1/$pkgname/$pkgver-1
}
sha512sums="5826780d79c6e5a3644e3d8985c4274c439df60815ae3d13d94ff66dd84328aae6786c9b5a76579ed8cfbabdef7d856e240a85a3af13c1cf03f793dff33ba068  lua-resty-upload-0.10.tar.gz"
